package sort.recharge;

import com.alibaba.fastjson.JSON;
import sort.recharge.query.QueryBanlenceTest;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Test2 {

    public static void main(String[] args) {

        List<PaymentRechargeList> paymentRechargeLists = new ArrayList<>();

        PaymentRechargeList paymentRechargeList = new PaymentRechargeList();
        Map<String, String> extProperties = new HashMap<>();
        paymentRechargeList.setExtProperties(extProperties);
        extProperties.put("ticketType","0");
        extProperties.put("isPay","1");
        extProperties.put("realFee","26");


        System.out.println(QueryBanlenceTest.getRechargeType(extProperties));

        paymentRechargeList.setOriginalValue(100l);
        paymentRechargeLists.add(paymentRechargeList);
        List<PaymentRechargeList> candidatedRechargeList = RechargeListUtil.getCandidatedRechargeList(paymentRechargeLists, "1");
        System.out.println(JSON.toJSONString(candidatedRechargeList));
    }
}
